package cn.liontalk.web;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author ZhouZhe
 * @version 1.0
 * @description
 * @date 2019-04-02 21:06
 **/
@RefreshScope
@RestController
@RequestMapping(value = "/config")
public class TestController {


    @Value("${configDev}")
    private String configDev;

    @RequestMapping(value = "/demo")
    public String getConfigTest() {
        return "Hello! " + configDev;
    }

}
